<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<link th:href="@{/statics/css/index.css}" type="text/css" rel="stylesheet">
<script th:src="@{/statics/未压缩版.js}" type="text/javascript"></script>


<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<div class="view" th:object="${user}">
    <p>用户id：<span th:text="*{id}"></span></p>
    <p>用户编码：<span th:text="*{userCode}"></span></p>
    <p>用户姓名：<span th:text="*{userName}"></span></p>
    <p>用户密码：<span th:text="*{userPassword}"></span></p>
    <p>用户性别： <span th:if="*{gender==1}">男</span>
                <span th:if="*{gender==2}">女</span>
    </p>
    <p>
        生日：<span th:text="${#dates.format(user.birthday,'yyyy-MM-dd')}"></span>
    </p>


</div>
</body>
</html>